package com.iot.core.domain;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.google.common.collect.Maps;

import java.io.Serializable;
import java.util.Map;

public abstract class BaseDO implements Serializable {

    private PageSO pageSO = new PageSO();

    private Boolean selected;

    private Map<String,Object> queryParams = Maps.newHashMap();

    @JsonIgnore
    public PageSO getPageSO() {
        return pageSO;
    }

    public void setPageSO(PageSO pageSO) {
        this.pageSO = pageSO;
    }

    public Boolean getSelected() {
        return selected;
    }

    public void setSelected(Boolean selected) {
        this.selected = selected;
    }

    public void addQueryParam(String key, Object value) {
        queryParams.put(key, value);
    }

    @JsonIgnore
    public Map<String, Object> getQueryParams() {
        return queryParams;
    }

    public void setQueryParams(Map<String, Object> queryParams) {
        this.queryParams = queryParams;
    }
}
